<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.Random"%>
<%@page import="com.jiuqi.bi.chartpro.chart.linebox.LineBoxChartModel"%>
<%@page import="com.jiuqi.bi.chartpro.chart.linebox.BarSeries"%>
<%@page import="com.jiuqi.bi.chartpro.chart.linebox.LineBoxChart"%>
<%@page import="com.jiuqi.bi.chartpro.chart.linebox.LineSeries"%>
<%@page import="com.jiuqi.bi.chartpro.common.LineType"%>
<%@page import="com.jiuqi.bi.chartpro.chart.axes.ValueAxis"%>
<%@page import="com.jiuqi.bi.chartpro.common.Alignment"%>
<%@page import="com.jiuqi.bi.chartpro.common.Shape"%>
<%@page import="com.jiuqi.bi.chartpro.common.Effect"%>
<%@page import="com.jiuqi.bi.chartpro.common.DataSymbol"%> 
<%@page import="com.console.EnvConsoleService"%> 
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
    double[][] data = EnvConsoleService.autoGeneRandomData(request, response, out);
    String[] labels = EnvConsoleService.getLabels(request, response, out);
%>
<html>
<head>
</head>
<body topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0">
<%
	LineBoxChartModel lineBoxModel=new LineBoxChartModel(1020,400);
	lineBoxModel.setTitle("混合气体实时浓度监控");
	lineBoxModel.getLegend().setPosition(Alignment.Top);
	lineBoxModel.setHeight(400);
	lineBoxModel.setWidth(1020);
	lineBoxModel.getValueAxes()[0].setDecimal(3);
	lineBoxModel.setShowLegend(true);
	lineBoxModel.setShowTable(true);
	lineBoxModel.getValueAxes()[0].setTitle("浓度");
	lineBoxModel.getCategoryAxis().setLabels(labels);
	
	//添加直方序列1
	LineSeries series1=new LineSeries("二氧化碳");
	series1.setLineType(LineType.Curve); 
	series1.setDataSymbolSize(0);
	series1.setColor(0xff0000);
	series1.setData(data[0]);
	//添加直方序列2
	LineSeries series2=new LineSeries("一氧化碳");
	series2.setLineType(LineType.Curve); 
	series2.setDataSymbolSize(0);
	series2.setColor(0x8b09f9);
	series2.setData(data[1]);
	//添加直方序列3
	LineSeries series3=new LineSeries("氮气");
	series3.setLineType(LineType.Curve); 
	series3.setDataSymbolSize(0);
	series3.setColor(0x00ff00);
	series3.setData(data[2]);
	//添加直方序列3
	LineSeries series4=new LineSeries("甲烷");
	series4.setLineType(LineType.Curve); 
	series4.setDataSymbolSize(0);
	series4.setColor(0x0000ff);
	series4.setData(data[3]);
	
	
	lineBoxModel.addSeries(series1);
	lineBoxModel.addSeries(series2);
	lineBoxModel.addSeries(series3);
	lineBoxModel.addSeries(series4);
	
	LineBoxChart  lineBox=new LineBoxChart(lineBoxModel);
	
	byte[] imageBytes=lineBox.buildChart();
	request.getSession().setAttribute("chart",imageBytes);
 %>
 <jsp:include page="topbar.jsp" >
	<jsp:param name="title" value="当月输出电流波动折线图"/>
</jsp:include>
</body>
</html>